import request from '@/utils/request'

// 查询列表
export function getDataList(query) {
  return request({
    url: '/car/carBasic/queryPageList',
    method: 'get',
    params: query
  })
}

//删除车辆基础信息
export function deleteDataList(query) {
  return request({
    url: `/car/carBasic/delete/${query}`,
    method: 'POST',
  })
}

// 查询基础信息
export function getCarBasic(carId) {
  return request({
    url: '/car/carBasic/' + carId,
    method: 'get',

  })
}

// 查询装饰信息

export function getZsCarId(carId) {
  return request({
    url: '/car/carDecorate/getByCarId/' + carId,
    method: 'get',

  })
}

// 上牌信息

export function getSpCarId(carId) {
  return request({
    url: '/car/licensePlate/getByCarId/' + carId,
    method: 'get',

  })
}

//查询车辆统计信息
export function getHomeCount() {
  return request({
    url: '/car/carBasic/getHomeCount',
    method: 'get',

  })
}
